package com.zhuhao.design_mode.behavioral_pattern.chain_responsibility;

public class Client {

    public static void main(String[] args) {
        Handler handler1 = new ConcreteHandler1(null);
        Handler handler2 = new ConcreteHandler2(handler1);
        Handler handler3 = new ConcreteHandler3(handler2);
        Request request1 = new Request(RequestType.type1, "request1");
        handler3.handleRequest(request1);
//        Request request2 = new Request(RequestType.type2, "request2");
//        handler3.handleRequest(request2);
    }
}
